package com.my.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateDao {
	private static SessionFactory sf;
	private static Session session;
	static {
		sf = new Configuration().configure().buildSessionFactory();
		session = sf.openSession();
	}

	public static Session getSession() {
		return session;
	}
}
